<template>
  <div class="header">
    <div class="header-left">
      <span class="iconfont">&#xe623;</span>
    </div>
    <div class="header-input">
      <span class="iconfont">&#xe615;</span>搜索</div>
    <router-link to='/city'>
			<div class="header-right">{{this.city}}
				<span class="iconfont">&#xe60e;</span></div>
    </router-link>
		</div>
</template>
<script>
export default {
  name: 'HomeHeader',
  props: {
    city: String
  }
}

</script>
<style lang="stylus" scoped>
@import '~styles/varibles.styl'
	.header
		font-size:15px
		display: flex
		line-height: .86rem
		background: $bgColor
		.header-left
			width: .64rem
			padding-left: .2rem
			float: left
			color: #fff
		.header-input
			margin-top: .10rem
			margin-left: .1rem
			height: .64rem
			line-height: .64rem
			border-radius: .15rem
			background: #fff
			color: #ccc
			flex: 1
		.header-right
			width: 1.24rem
			float: right
			text-align: center
			color: #fff
</style>
